//
//  DataMD5.h
//  WeChatDemo
//
//  Created by 尹俊雄 on 15/7/2.
//  Copyright (c) 2015年 yjx. All rights reserved.
//


#import <Foundation/Foundation.h>

@interface DataMD5 : NSObject

@property (nonatomic,strong) NSMutableDictionary *dic;

+(instancetype)sharedDataMD5;

- (instancetype)initWithAppid:(NSString *)appid_key
                       mch_id:(NSString *)mch_id_key
                    nonce_str:(NSString *)noce_str_key
                   partner_id:(NSString *)partner_id
                         body:(NSString *)body_key
                out_trade_no :(NSString *)out_trade_no_key
                    total_fee:(NSString *)total_fee_key
             spbill_create_ip:(NSString *)spbill_create_ip_key
                   notify_url:(NSString *)notify_url_key
                   trade_type:(NSString *)trade_type_key;

///创建发起支付时的SIGN签名(二次签名)
- (NSString *)createMD5SingForPay:(NSString *)appid_key partnerid:(NSString *)partnerid_key prepayid:(NSString *)prepayid_key package:(NSString *)package_key noncestr:(NSString *)noncestr_key timestamp:(UInt32)timestamp_key;

- (NSString *) md5:(NSString *)str;

+ (NSMutableDictionary *)getURLParameters:(NSString *)urlStr;

+ (NSString *)getUrlStringWithString:(NSString *)urlStr;

@end
